package org.ucas.faker.web.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;
import org.ucas.faker.web.entity.Query;

@Repository
public interface QueryDao extends PagingAndSortingRepository<Query,Long>  {

  public Page<Query> findByUserIdAndType(long userId, int type, Pageable pageable);

  public Page<Query> findByUserId(long userId, Pageable pageable);

}
